import axios from '../../axios'

const INSURANCE_URL = '/insurance'

const cosutomersApi = {

    getInsurance: function () {
        return axios({
            url: INSURANCE_URL + '/' + 'getInsurance',
            method: 'get'
        })
    },

    addInsurance: function (data) {
        return axios({
            url: INSURANCE_URL + '/' + 'addInsurance',
            method: 'post',
            data
        })
    },

    deleteInsurance: function (data) {
        return axios({
            url: INSURANCE_URL + '/' + 'deleteInsurance',
            method: 'post',
            data,

        })

    },

    getInsuranceById: function (data) {
        return axios({
            url: INSURANCE_URL + '/' + 'getInsuranceById',
            method: 'post',
            data,
        })
    },


    modifyInsurance: function (data) {
        return axios({
            url: INSURANCE_URL + '/' + 'modifyInsurance',
            method: 'post',
            data
        })
    }


}

export default cosutomersApi;